// -----------------------------------------------------------------------------
// Generate By Furion Tools v1.6.0                            
// -----------------------------------------------------------------------------

using Furion.DatabaseAccessor;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using System;
using System.Collections.Generic;

#nullable disable

namespace iemtm.WeChat.Core
{
    public partial class FuelConfig : IEntity<MasterDbContextLocator>, IEntityTypeBuilder<FuelConfig, MasterDbContextLocator>
    {

        public int FuelConfigId { get; set; }
        public decimal? FuelPerDegree { get; set; }
        public decimal? FuelPerHour { get; set; }
        public decimal? UpperLimit { get; set; }
        public decimal? DownLimit { get; set; }
        public DateTime? CreateDate { get; set; }
        public string PrjCode { get; set; }
        public string PrjName { get; set; }
    
        public void Configure(EntityTypeBuilder<FuelConfig> entityBuilder, DbContext dbContext, Type dbContextLocator)
        {
                entityBuilder.Property(e => e.CreateDate).HasColumnType("datetime");

                entityBuilder.Property(e => e.DownLimit)
                    .HasColumnType("decimal(18, 2)")
                    .HasDefaultValueSql("((0))");

                entityBuilder.Property(e => e.FuelPerDegree)
                    .HasColumnType("decimal(18, 2)")
                    .HasDefaultValueSql("((0))");

                entityBuilder.Property(e => e.FuelPerHour)
                    .HasColumnType("decimal(18, 2)")
                    .HasDefaultValueSql("((0))");

                entityBuilder.Property(e => e.PrjCode).HasMaxLength(20);

                entityBuilder.Property(e => e.PrjName).HasMaxLength(100);

                entityBuilder.Property(e => e.UpperLimit)
                    .HasColumnType("decimal(18, 2)")
                    .HasDefaultValueSql("((0))");
        }

    }
}

